<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div>
        <h1>The JQuery ajax Page</h1>
        <button onclick="doAjax()">Common</button>
        <button onclick="doAjaxGet()">GET</button>
        <button onclick="doAjaxPost()">POST</button>
        <button onclick="doAjaxLoad()">load</button>
    </div>
    <div id="result"></div>
    <script src="js/jquery-1.8.3.min.js"></script>
    <script>
        function doAjax() {
            let url = "/doAjaxGet";
            let params = "";
            //debugger
            $.ajax({
                type:"get",
                url:url,
                data:params,
                success:function (result) {
                    console.log(result);
                    $("#result").html(result);
                }
            }, "text")
        }

        function doAjaxGet() {

        }

        function doAjaxPost() {

        }

        function doAjaxLoad() {

        }
    </script>
</body>
</html>